package com.zhongyu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhongyu.mapper.LinkUserMapper;
import com.zhongyu.pojo.LinkUser;
import com.zhongyu.service.LinkUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("LinkUserService")
public class LinkUserServiceImpl extends ServiceImpl<LinkUserMapper, LinkUser> implements LinkUserService {
@Resource
private LinkUserMapper linkUserMapper;

    @Override
    public List<LinkUser> searchAll() {
        LinkUser linkUser=new LinkUser();
        return linkUserMapper.findAll();
    }

    @Override
    public void del(Integer id) {
        linkUserMapper.deleteById(id);
    }

    }
